package com.csun.cmny.provider.dao;

import com.csun.cmny.provider.model.domain.DmcDeviceUserBind;
import org.apache.ibatis.annotations.Param;
import tk.mybatis.mapper.common.Mapper;

import java.util.List;

public interface DmcDeviceUserBindMapper extends Mapper<DmcDeviceUserBind> {

    /**
     * 设置设备阈值
     * @param: [dmcDeviceUserBind]
     * @return: java.lang.Integer
     */
    Integer setDeviceThresholdByDeviceId(DmcDeviceUserBind dmcDeviceUserBind);

    /**
     * 查询用户所拥有的设备类型
     *
     * @param userId the user id
     *
     * @return the list.
     */
    List<Long> queryDeviceIdList(@Param("userId") Long userId);

    /**
     * query not bind device id list
     *
     * @param deviceIdList  the device id list
     *
     * @return  the list.
     */
    List<Long> queryNotBindDeviceIdList(@Param("deviceIdList") List<Long> deviceIdList);

    /**
     * query all device id list
     *
     * @return  the list.
     */
    List<Long> queryAllDeviceIdList();
}